﻿using Dln.Common;
using Dln.Common.Helper;
using Dln.Model;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Page_AutoRun_EquipmentInfo : BasePage
{
    public DataTable dtorderModel = new DataTable();
    protected void Page_Load(object sender, EventArgs e)
    {
        var Id = HttpContext.Current.Request.QueryString["Id"];
        //GetEquipInfo
        object[] arge = new object[1];
        arge[0] = Id;
        var url = CommonHelper.GetAppSettings("DlnService1");
        object getEquipmentResults = WebServiceHelper.InvokeWebService(url, "GetEquipInfo", arge);

        if (getEquipmentResults != null)
        {
            DataSet ds = (DataSet)getEquipmentResults;
            if (!ds.Tables[0].Columns.Contains("ResultDataSet"))
            {
                dtorderModel = ds.Tables[0];

            }
        }
    }
}